package com.lei2j.factory;

public abstract class PizzaStore {

	//创建者工厂方法
	public abstract Pizza createPizza(String type);
	
	//创建者通过依赖于工厂方法，获得具体工厂产品
	public final void orderPizza(String type) {
		Pizza pizza = this.createPizza(type);
		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();
	}
	
}